#include <stdio.h>
#include <stdlib.h>

void main()
{
	char *p;
	if((p=(char*)malloc(5))==NULL)
	{
		printf("malloc str err!");
		exit(1);
	}

	printf("please input some str:\n");
	gets(p);
	puts(p);
	free(p);
}